package com.yzr.controller;

import org.junit.jupiter.api.Test;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @description
 * @author: yzr
 * @date: 2022/4/21 10:55
 **/
@RestController
public class TestController {


    @Test
    public void _1(){
        ConcurrentHashMap<Object, Object> map = new ConcurrentHashMap<>(2);
        map.put("1", "1");
        map.put("2", "1");

        map.put("1", "2");
        map.put("2", "2");

        map.put("1", "3");
        map.put("2", "3");

        map.put("3", "3");

        map.entrySet().forEach(System.out::println);

    }
}
